﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace iS3.Server.Core.Controller
{
    [RoutePrefix("api")]
    public class HealthController : ApiController
    {
        [Route("Health")]
        [HttpGet]
        [AllowAnonymous]
        public HttpResponseMessage Get()
        {
            //Console.WriteLine("健康检查" + DateTime.Now);
            HttpResponseMessage responseMessage = new HttpResponseMessage { Content = new StringContent("ok", Encoding.GetEncoding("UTF-8"), "text/plain") };
            return responseMessage;
        }
    }
}
